package io.renren.common.constant;


import java.util.HashMap;
import java.util.Map;

public class OjConstant {

    public static final int STATUS_ACCEPTED = 3;
    public static final int STATUS_WRONG_ANSWER = 4;
    public static final int STATUS_TIME_LIMIT_EXCEEDED = 5;
    public static final int STATUS_COMPILATION_ERROR = 6;


    public static Map<Integer, String> status = new HashMap<Integer, String>() {{
        put(1, "In Queue");
        put(2, "Processing");
        put(3, "Accepted");
        put(4, "Wrong Answer");
        put(5, "Time Limit Exceeded");
        put(6, "Compilation Error");
        put(7, "Runtime Error (SIGSEGV)");
        put(8, "Runtime Error (SIGXFSZ)");
        put(9, "Runtime Error (SIGFPE)");
        put(10, "Runtime Error (SIGABRT)");
        put(11, "Runtime Error (NZEC)");
        put(12, "Runtime Error (Other)");
        put(13, "Internal Error");
        put(14, "Exec Format Error");
    }};


    public static Map<Integer, String> languages = new HashMap<Integer, String>() {{
//        {"id":45,"name":"Assembly (NASM 2.14.02)"},
//        {"id":46,"name":"Bash (5.0.0)"},
//        {"id":47,"name":"Basic (FBC 1.07.1)"},
//        {"id":75,"name":"C (Clang 7.0.1)"},
//        {"id":76,"name":"C++ (Clang 7.0.1)"},
//        {"id":48,"name":"C (GCC 7.4.0)"},
//        {"id":52,"name":"C++ (GCC 7.4.0)"},
//        {"id":49,"name":"C (GCC 8.3.0)"},
//        {"id":53,"name":"C++ (GCC 8.3.0)"},
//        {"id":50,"name":"C (GCC 9.2.0)"},
//        {"id":54,"name":"C++ (GCC 9.2.0)"},
//        {"id":86,"name":"Clojure (1.10.1)"},
//        {"id":51,"name":"C# (Mono 6.6.0.161)"},
//        {"id":77,"name":"COBOL (GnuCOBOL 2.2)"},{"id":55,"name":"Common Lisp (SBCL 2.0.0)"},{"id":90,"name":"Dart (2.19.2)"},{"id":56,"name":"D (DMD 2.089.1)"},{"id":57,"name":"Elixir (1.9.4)"},{"id":58,"name":"Erlang (OTP 22.2)"},{"id":44,"name":"Executable"},{"id":87,"name":"F# (.NET Core SDK 3.1.202)"},{"id":59,"name":"Fortran (GFortran 9.2.0)"},{"id":60,"name":"Go (1.13.5)"},{"id":95,"name":"Go (1.18.5)"},{"id":88,"name":"Groovy (3.0.3)"},{"id":61,"name":"Haskell (GHC 8.8.1)"},{"id":91,"name":"Java (JDK 17.0.6)"},{"id":62,"name":"Java (OpenJDK 13.0.1)"},{"id":63,"name":"JavaScript (Node.js 12.14.0)"},{"id":93,"name":"JavaScript (Node.js 18.15.0)"},{"id":78,"name":"Kotlin (1.3.70)"},{"id":64,"name":"Lua (5.3.5)"},{"id":89,"name":"Multi-file program"},{"id":79,"name":"Objective-C (Clang 7.0.1)"},{"id":65,"name":"OCaml (4.09.0)"},{"id":66,"name":"Octave (5.1.0)"},{"id":67,"name":"Pascal (FPC 3.0.4)"},{"id":85,"name":"Perl (5.28.1)"},{"id":68,"name":"PHP (7.4.1)"},{"id":43,"name":"Plain Text"},{"id":69,"name":"Prolog (GNU Prolog 1.4.5)"},
//        {"id":70,"name":"Python (2.7.17)"},
//        {"id":92,"name":"Python (3.11.2)"},
//        {"id":71,"name":"Python (3.8.1)"},
//        {"id":80,"name":"R (4.0.0)"},{"id":72,"name":"Ruby (2.7.0)"},{"id":73,"name":"Rust (1.40.0)"},{"id":81,"name":"Scala (2.13.2)"},{"id":82,"name":"SQL (SQLite 3.27.2)"},{"id":83,"name":"Swift (5.2.3)"},{"id":74,"name":"TypeScript (3.7.4)"},{"id":94,"name":"TypeScript (5.0.3)"},{"id":84,"name":"Visual Basic.Net (vbnc 0.0.0.5943)"}
        put(70, "Python (2.7.17)");
        put(71, "Python (3.8.1)");
        put(92, "Python (3.11.2)");
    }};

    public static Integer LANGUAGE_PYTHON2 = 70;
    public static Integer LANGUAGE_PYTHON3 = 92;
}